package com.ocom.common.entity.human;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ocom.common.entity.base.EntityBase;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "visitor_record")
public class EntityVisitorRecord extends EntityBase implements Serializable {


  private static final long serialVersionUID = 8126073075593768058L;
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;
  private Long comId;
  private Long deptId;
  private String deptName;
  private Long applyId;
  @JsonProperty("applyName")
  private String applyName;
  @JsonProperty("visitReason")
  private String visitReason;
  private String areaIds;
  @JsonProperty("areaNames")
  private String areaNames;
  @JsonProperty("entryTime")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
  private Date entryTime;
  @JsonProperty("approverStatus")
  private Long approverStatus;
  @JsonProperty("approverTime")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
  private Date approverTime;
  @JsonProperty("approverId")
  private Long approverId;
  @JsonProperty("approverName")
  private String approverName;

  @TableField(exist = false)
  private List<Object> guess = new ArrayList<>();
}
